#include <stdio.h>
#include <stdlib.h>

void main(){
  int num, fat, cont;
  printf("Entre com o valor de num: ");
  scanf("%d", &num);
  fat = 1;
  cont = 0;
  do { 
    cont = cont + 1;
	fat = fat * cont;
  } while (cont < num);
  printf("%d\n",fat); 
}

